package com.example.vue_shop.components.shopparams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vue_shop.components.shopparams.entity.ShopParams;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lipengwei
 */
@Mapper
public interface ShopParamsMapper extends BaseMapper<ShopParams> {

    /**
     * 获取分类参数列表（商品参数列表）.
     * @param id 商品分类的主键
     * @param type 参数类型 dynamic：动态参数，static，静态属性
     * @return List<ShopParams>
     */
    List<ShopParams> getShopParamsListByShopTypeIdAndShopParamsType(int id,
                                                                    String type);
}